package com.example.txtransaction.web;

import com.example.txtransaction.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    TestService testService;

    @GetMapping(value = "test")
    public String test() throws Exception {
        testService.save();
        return "1";
    }

}
